package Jcat.cduestcbbs.tools;

import Jcat.cduestcbbs.Dao.FriendDao;
import Jcat.cduestcbbs.Dao.MessageDao;
import Jcat.cduestcbbs.Dao.PostsDao;
import Jcat.cduestcbbs.Dao.RecordDao;
import Jcat.cduestcbbs.Dao.ReplyDao;
import Jcat.cduestcbbs.Dao.UserDao;
import Jcat.cduestcbbs.DaoImpl.FriendDaoImpl;
import Jcat.cduestcbbs.DaoImpl.MessageDaoImpl;
import Jcat.cduestcbbs.DaoImpl.PostsDaoImpl;
import Jcat.cduestcbbs.DaoImpl.RecordDaoImpl;
import Jcat.cduestcbbs.DaoImpl.ReplyDaoImpl;
import Jcat.cduestcbbs.DaoImpl.UserDaoImpl;

public class Singleton {
	private static FriendDao firendDaoImpl = new FriendDaoImpl();
	private static MessageDao messageDaoImpl = new MessageDaoImpl();
	private static PostsDao postsDaoImpl = new PostsDaoImpl();
	private static RecordDao recordDaoImpl = new RecordDaoImpl();
	private static ReplyDao replyDaoImpl = new ReplyDaoImpl();
	private static UserDao userDaoImpl = new UserDaoImpl();

	public static FriendDao getFriendDaoSingleton() {

		return firendDaoImpl;

	}

	public static MessageDao getMessageDaoSingleton() {

		return messageDaoImpl;

	}

	public static PostsDao getPostsDaoSingleton() {

		return postsDaoImpl;

	}

	public static RecordDao getRecordDaoSingleton() {

		return recordDaoImpl;

	}

	public static ReplyDao getReplyDaoSingleton() {

		return replyDaoImpl;

	}

	public static UserDao getUserDaoSingleton() {

		return userDaoImpl;

	}
}
